<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <?php
    include'login.php';
    
   
if(isset($_POST['Insert_text']))
    {
        Insert($_POST['textarea'], $_POST['user_name']);
    }
    
        ?>
    <head>
        <link rel="stylesheet" type="text/css" href="blogStyles.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <header>CollabBlog</header>
    <br>
    <br>
    <br>
    
    <body>
        <form method ="post" >
            
            <table>
                <tr>
                    <td>
                       Add Text 
                    </td>
                    <td>
                        <input type="text" name ="textarea"/>

                    </td>
                    <td>
                        <input type = "submit" name ="Insert_text" value ="submit text"
                               
                    </td>
                    <td>
                        user name
                    </td>
                    <td>
                        <input type="text" name="user_name"/>
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        View all Posts <a href="viewAllPosts.php">here</a>
                    </td>
                   
                </tr>
                
            </table>
            <br>
    <br>
    <br>
            <table>
                <tr>
                     <td>
                       
                        
                    </td>
                    <td>
                       
                        
                    </td>
                    <td>
                        To view our pdf features, <a href="pdfpage.php">Click Here</a>
                        
                    </td>
                    
                </tr>
<!--                <tr>
                    <td>
                        Add PDF
                        
                    </td>
                    <td>
                        <input type ="file" name ="uploaded_file" />
                    </td>
                    <td>
                        <input type = "submit" name ="pdf" value ="Upload PDF" 
                    </td>
                </tr>
                <tr>
                    <td>
                        View all PDFs <a href="viewAllPdfs.php">here</a>
                    </td>
                   
                </tr>-->
            </table>
    <br>
    <br>
    <br>
            <table>
                
                <tr>
                    <td>
                        
                    </td>
                   
                </tr>
                
                <tr>
                    <td>
                        Search for posts and files <a href="newsearch.php">here</a>
                    </td>
                   
                </tr>
                <tr>
                    
                    <td>
<!--                       <input type ="submit" name="delete" value ="delete" -->
                    </td>
                    
                    
                </tr>
            </table>
            
        </form>
    </body>
</html>
